home *** CD-ROM | disk | FTP | other *** search
- /* %filename% -- application-specific data management */
- /* Created %date% %time% by AppMaker */
-
- /* This module contains data structures to access the data in your */
- /* document's file(s). The purpose is to isolate the details of the */
- /* data representation into this module and to provide accessor */
- /* functions for reading/writing logical pieces of the data. */
- /* For your application, you will probably rewrite most of this. */
- /* This module will not be regenerated by AppMaker unless you delete it. */
-
- #include <Types.h>
- #include <Quickdraw.h>
- #include <Controls.h>
- #include <Events.h>
- #include <Lists.h>
- #include <Menus.h>
- #include <TextEdit.h>
- #include "Globals.h"
- #include "Miscellany.h"
- #include "%appname%Data.h"
-
- %If lang = MPW%
- #pragma segment %appname%Data
-
- %end if%
-
- /* Define additional "private" data structures. */
- typedef struct {
- short data;
- } MoreStuff;
-
- /*----------*/
- void AddStuff (YourStuff *stuff)
- {
- #pragma unused (stuff)
-
- } /* AddStuff */
-
- /*----------*/
- Boolean GetStuff (void)
- {
- return (false);
- } /* GetStuff */
-
- /*----------*/
- void PutStuff (void)
- {
- } /* PutStuff */
-
- /*----------*/
- void DeleteStuff (void)
- {
- } /* DeleteStuff */
-
- /*----------*/
- void InitAppData (void)
- {
- } /* InitAppData */
-
- /*----------*/
- void DisposeAppData (void)
- {
- } /* DisposeAppData */
-
- /*----------*/
- Boolean OpenAppFile (short vRefNum,
- Str255 fName,
- short *fRefNum)
- {
- Boolean okay;
-
- okay = CheckOS (FSOpen (fName, vRefNum, fRefNum));
- return (okay);
- } /* OpenAppFile */
-
- /*----------*/
- void CloseAppFile (short fRefNum)
- {
- Boolean okay;
-
- if (fRefNum != 0) { /* could be 0 if closing new document */
- okay = CheckOS (FSClose (fRefNum));
- }
- } /* CloseAppFile */
-
- /*----------*/
- void ReadAppFile (short fRefNum)
- {
- #pragma unused (fRefNum)
-
- InitAppData ();
- } /* ReadAppFile */
-
- /*----------*/
- void WriteAppFile (short fRefNum)
- {
- #pragma unused (fRefNum)
-
- } /* WriteAppFile */
-
- /* %appName%Data */
-